package com.hs.jhzd.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/02/25
 **/
@Entity
@Table(name = "yl_fyjhxxb")
public class YlFyjhxxbEntity {
    private String uuid;
    private String rybh;
    private String jsbh;
    private String jsmc;
    private String xm;
    private String xb;
    private String jsh;
    private String cjr;
    private Date cjsj;
    private String ypqd;
    private String kssj;
    private String jssj;
    private Date fyrq;
    private Date sjc;
    private Boolean scbj;
    private String byzz;
    private String zlys;
    private Date zlsj;
    private String url;
    private String gkr;
    private Date gksj;

    @Id
    @Column(name = "UUID")
//    @GenericGenerator(name="idGenerator", strategy="uuid") //这个是hibernate的注解/生成32位UUID
//    @GeneratedValue(generator="idGenerator")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "RYBH")
    public String getRybh() {
        return rybh;
    }

    public void setRybh(String rybh) {
        this.rybh = rybh;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "JSMC")
    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    @Basic
    @Column(name = "XM")
    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    @Basic
    @Column(name = "XB")
    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    @Basic
    @Column(name = "JSH")
    private String getJsh() {
        return jsh;
    }

    public void setJsh(String jsh) {
        this.jsh = jsh;
    }

    @Basic
    @Column(name = "CJR")
    public String getCjr() {
        return cjr;
    }

    public void setCjr(String cjr) {
        this.cjr = cjr;
    }

    @Basic
    @Column(name = "CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "YPQD")
    public String getYpqd() {
        return ypqd;
    }

    public void setYpqd(String ypqd) {
        this.ypqd = ypqd;
    }

    @Basic
    @Column(name = "KSSJ")
    public String getKssj() {
        return kssj;
    }

    public void setKssj(String kssj) {
        this.kssj = kssj;
    }

    @Basic
    @Column(name = "JSSJ")
    public String getJssj() {
        return jssj;
    }

    public void setJssj(String jssj) {
        this.jssj = jssj;
    }

    @Basic
    @Column(name = "FYRQ")
    public Date getFyrq() {
        return fyrq;
    }

    public void setFyrq(Date fyrq) {
        this.fyrq = fyrq;
    }

    @Basic
    @Column(name = "SJC")
    public Date getSjc() {
        return sjc;
    }

    public void setSjc(Date sjc) {
        this.sjc = sjc;
    }

    @Basic
    @Column(name = "SCBJ")
    public Boolean getScbj() {
        return scbj;
    }

    public void setScbj(Boolean scbj) {
        this.scbj = scbj;
    }

    @Basic
    @Column(name = "BYZZ")
    public String getByzz() {
        return byzz;
    }

    public void setByzz(String byzz) {
        this.byzz = byzz;
    }

    @Basic
    @Column(name = "ZLYS")
    public String getZlys() {
        return zlys;
    }

    public void setZlys(String zlys) {
        this.zlys = zlys;
    }

    @Basic
    @Column(name = "ZLSJ")
    public Date getZlsj() {
        return zlsj;
    }

    public void setZlsj(Date zlsj) {
        this.zlsj = zlsj;
    }

    @Basic
    @Column(name = "URL")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "GKR")
    public String getGkr() {
        return gkr;
    }

    public void setGkr(String gkr) {
        this.gkr = gkr;
    }

    @Basic
    @Column(name = "GKSJ")
    public Date getGksj() {
        return gksj;
    }

    public void setGksj(Date gksj) {
        this.gksj = gksj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YlFyjhxxbEntity that = (YlFyjhxxbEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(rybh, that.rybh) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(jsmc, that.jsmc) &&
                Objects.equals(xm, that.xm) &&
                Objects.equals(xb, that.xb) &&
                Objects.equals(jsh, that.jsh) &&
                Objects.equals(cjr, that.cjr) &&
                Objects.equals(cjsj, that.cjsj) &&
                Objects.equals(ypqd, that.ypqd) &&
                Objects.equals(kssj, that.kssj) &&
                Objects.equals(jssj, that.jssj) &&
                Objects.equals(fyrq, that.fyrq) &&
                Objects.equals(sjc, that.sjc) &&
                Objects.equals(scbj, that.scbj) &&
                Objects.equals(byzz, that.byzz) &&
                Objects.equals(zlys, that.zlys) &&
                Objects.equals(zlsj, that.zlsj) &&
                Objects.equals(url, that.url) &&
                Objects.equals(gkr, that.gkr) &&
                Objects.equals(gksj, that.gksj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, rybh, jsbh, jsmc, xm, xb, jsh, cjr, cjsj, ypqd, kssj, jssj, fyrq, sjc, scbj, byzz, zlys, zlsj, url, gkr, gksj);
    }
}
